package com.hqhy.like.stock.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqhy.like.stock.pojo.dto.TotalUpdateDTO;
import com.hqhy.like.stock.pojo.entity.Total;
import com.hqhy.like.stock.pojo.vo.TotalListItemVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 处理库存总量数据的Mapper接口
 */
@Repository
public interface TotalMapper extends BaseMapper<Total> {

    int deleteByNameAndUnit(String name, String unit);

    int updateByNameAndUnit(String name, String unit, Integer number);
    /**
     * 查询库存数据列表
     */
    List<TotalListItemVO> list();

    TotalUpdateDTO selecTotalById(Long id);

    TotalUpdateDTO selectTotalByNameAndUnit(String name,String unit);




}
